# Copyright (C) 2007-2008 Annas Al Maleh
# Licensed under the LGPL. See /COPYING.LGPL for more details.

require 'java'
require 'rubygems'
gem 'glimmer'
import 'org.eclipse.swt.SWT'

class HelloWorld

  require 'glimmer'
  require 'command_handlers'
		
	include Glimmer

	def launch
		@shell = shell {
			text "SWT"
			composite {
				label { 
					text "Hello World!" 
				}
			}
		}
    @shell.open
	end
end

HelloWorld.new.launch
